// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addAuditScore POST /api/scoreAudit/add */
export async function addAuditScoreUsingPost(
  body: API.AddScoreAuditDTO,
  options?: { [key: string]: any },
) {
  return request<API.ResultVoid_>('/api/scoreAudit/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** pageScoreAudit POST /api/scoreAudit/page */
export async function pageScoreAuditUsingPost(
  body: API.QueryScoreAuditDTO,
  options?: { [key: string]: any },
) {
  return request<API.ResultPageScoreAuditVO_>('/api/scoreAudit/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateAudit PUT /api/scoreAudit/update */
export async function updateAuditUsingPut(
  body: API.AddScoreAuditDTO,
  options?: { [key: string]: any },
) {
  return request<API.ResultVoid_>('/api/scoreAudit/update', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
